package utils;

import java.awt.Component;

import javax.swing.JOptionPane;

public class MessageViewer {
	
	
	/**
	 * Metoda prikazuje JOptionPane dialog sa greskom.
	 * @param error - opis greske
	 * @author UrosKrkic & Radivoje Popovic
	 */
	public static void showError(Component owner, String error) {
		JOptionPane.showMessageDialog(owner, error, "Error", JOptionPane.ERROR_MESSAGE);
	}

}
